﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Domain.Entity;
using FluentNHibernate.Mapping;


namespace PropertyManagement.Domain.Mapping.FluentHibernate
{
    public class PaymentHistoryMap : ClassMap<PaymentHistory>
    {
        public PaymentHistoryMap()
        {
            Table("PaymentHistory");
            Id(x => x.ID).Column("ID").GeneratedBy.Identity();
            References(x => x.Invoice).Column("InvoiceID");
            Map(x => x.Amount).Column("Amount");
            References(x => x.PaymentType).Column("PaymentTypeID");
            Map(x => x.CreatedBy).Column("CreatedBy");
            Map(x => x.CreatedDate).Column("CreatedDate");
            Map(x => x.UpdatedBy).Column("UpdatedBy)");
            Map(x => x.UpdatedDate).Column("UpdatedDate");
        }
    }
}
